package com.chen.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

public class Dept {
    private Integer id;//部门编号
    private String deptName;//部门名称
    private String address;//部门地址
    @JsonFormat(pattern="yyyy-MM-dd", timezone="Europe/Zagreb")
    private Date createTime;//创建时间
    private String remark;//备注

    public Dept() {
    }

    public Dept(Integer id, String deptName, String address, Date createTime, String remark) {
        this.id = id;
        this.deptName = deptName;
        this.address = address;
        this.createTime = createTime;
        this.remark = remark;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    @Override
    public String toString() {
        return "Dept{" +
                "id=" + id +
                ", deptName='" + deptName + '\'' +
                ", address='" + address + '\'' +
                ", createTime=" + createTime +
                ", remark='" + remark + '\'' +
                '}';
    }
}
